import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from 'views/home/home.vue'
import Cart from 'views/cart/cart.vue'
import Category from 'views/category/category.vue'
import Profile from 'views/profile/profile.vue'

Vue.use(VueRouter)

const routes = [
  {path: '/', redirect: '/home'},
  {path: '/home', component: Home},
  {path: '/cart', component: Cart},
  {path: '/category', component: Category},
  {path: '/profile', component: Profile}
]

const router = new VueRouter({
  routes
})

export default router
